package com.zengqingfa.designpattern.behavior.chain.stock;

public abstract class AbstractJudgment {
    //需要继续判断的内容
    private String content = null;
    // 责任链的下一个节点，即处理者
    public AbstractJudgment nextJudg;


    public AbstractJudgment(String content) {
        this.content = content;
    }

    public String getContent() {
        return this.content;
    }

    public void setNextJudg(AbstractJudgment nextJudg){
        this.nextJudg=nextJudg;
    }
    //获取判断结果
    public abstract Boolean getResult();
}

